package com.midian.controller.sys;

import java.util.List;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.midian.common.filter.annotation.Validate;
import com.midian.common.system.ErrorConstants;
import com.midian.common.system.RetManager;
import com.midian.common.utils.ContentJSONObject;
import com.midian.model.sys.SysConf;
import com.midian.service.sys.ISysConfService;

import net.sf.json.JSONObject;


/**
 * 举报控制器
 *
 */
@Controller("reportController")
public class ReportController {
	
	private static final Logger LOG = Logger.getLogger(ReportController.class);
	
	/**系统配置业务*/
	private ISysConfService sysConfService;

	@Resource(name="sysConfService")
	public void setSysConfService(ISysConfService sysConfService) {
		this.sysConfService = sysConfService;
	}
	
	
	/**
	 * 获取系统配置列表
	 * @param client_key 
	 * @return
	 */
	@Validate(retCode = RetManager.common_error)
	@RequestMapping(value = "/report", method = RequestMethod.POST)
	public @ResponseBody Object showSysConfList(String client_key,String type,String target_id,
			@RequestParam(required=false) String content,
			@RequestParam(required=false) String user_id,
			@RequestParam(required=false) String access_token) {
		JSONObject json = new JSONObject();
		try {
             RetManager.getInstance().setRetSuccess(json, RetManager.private_report_success);
		} catch (Exception e) {
			LOG.error("showSysConfList-->exception");
			throw e;
		}
		return json;
	}
	
}
